package com.smartStatus.api.autha;

import lombok.Data;

/**
 * @ClassName : TokenEntry
 * @Author : lby
 * @Date: 2021/1/25 14:33
 * @Description : token 实体类
 */
@Data
public class TokenEntry {

    /**
     * Token秘钥
     */
    public static final String TOKEN_SECRET_KEY = "JWTSecret";


    /**
     * Token前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";


    /**
     * TokenHeader
     */
    public static final String TOKEN_HANDLER = "Authorization";


    /**
     * Token过期时间
     */
    public static final long TOKEN_EXPIRATION_TIME = 60 * 60 * 1000;


    /**
     * 不需要携带Token的接口
     */
    public static final String TOKEN_ALLOWED = "/admin/**,/auth/**,/sysUser/**,/oauth/**,/swagger-ui.html,/webjars/**,/v2/**,/swagger-resources/**";
}
